FROM alpine:3.15

ENV TZ=Asia/Shanghai

WORKDIR /app

COPY go-cqhttp_linux_arm64-v1.1.0 go-cqhttp

RUN set -ex \
  && sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
  && apk add --no-cache tzdata ffmpeg \
  && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
  && chmod +x ./go-cqhttp \
  && rm -rf /var/cache/apk/* /tmp/* /usr/share/man
ENTRYPOINT [ "./go-cqhttp" ]